how to take single character input in c